package polymorphic.homework2;

public class Ape {
    private String name;

    public Ape() {
    }

    public Ape(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void speak(){
        System.out.println(this.getName()+"咿咿呀呀……");
    }
}
